﻿using CommHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CDEPMS_API.Utils
{
    public class ErrorHandle
    {
        public static void SaveError(string ApiUrl, string ErrorApiParas, string Message)
        {
            DataManager dm = new DataManager();
            Dictionary<string, string> dic = new Dictionary<string, string>
            {
                { "ErrorApi", ApiUrl },
                { "ErrorApiParas", ErrorApiParas },
                { "Description", Message }
            };
            dm.AddError(dic);
        }
    }
}